<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<title>网上商城</title>
<link href="${pageContext.request.contextPath}/css/common.css" rel="stylesheet" type="text/css"/>
<link href="${pageContext.request.contextPath}/css/product.css" rel="stylesheet" type="text/css"/>
<script language="javascript" type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.8.3.js">
</script>
<script language="javascript" type="text/javascript" src="${pageContext.request.contextPath}/js/layer/layer.js">
</script>
<script language="javascript" type="text/javascript" src="${pageContext.request.contextPath}/js/imagesize.js">
</script>
<script language="javascript" type="text/javascript" src="${pageContext.request.contextPath}/js/product.js">
</script>


</head>
<body>

<div class="container header">

	<%@include file="header.jsp" %>	
	<%@include file="search.jsp" %>
	<%@include file="menu.jsp" %>

</div>
<div class="container productContent">
		<div class="span6">
			<div class="hotProductCategory">
					<s:iterator var="c" value="#session.cList">
						<dl>
							<dt>
								<a href="${ pageContext.request.contextPath }/product_findByCid.action?cid=<s:property value="#c.cid"/>&page=1"><s:property value="#c.cname"/></a>
							</dt>
								<s:iterator var="cs" value="#c.categorySeconds">
									<dd>
										<a href="${ pageContext.request.contextPath }/product_findByCsid.action?csid=<s:property value="#cs.csid"/>&page=1"><s:property value="#cs.csname"/></a>
									</dd>
								</s:iterator>	
						</dl>
					</s:iterator>	
			</div>
			

		</div>
		
		<div class="span18 last">
			
			<div class="productImage">
					<a title="" style="outline-style: none; text-decoration: none;" id="zoom"  href="${ pageContext.request.contextPath }/<s:property value="model.image"/>" target="_blank" rel="gallery">
						<div class="zoomPad">
							<div style="width:300px;height:300px;opacity: 1;border: 1px solid #e4e4e4;">
							<img  title="" class="medium" src="${ pageContext.request.contextPath }/<s:property value="model.image"/>" />
							</div>
								<div style="display: block; top: 0px; left: 162px; width: 0px; height: 0px; position: absolute; border-width: 1px;" class="zoomPup"></div>
								<div style="position: absolute; z-index: 5001; left: 312px; top: 0px; display: block;" class="zoomWindow">
									<div style="width: 368px;" class="zoomWrapper">
										<div style="width: 100%; position: absolute; display: none;" class="zoomWrapperTitle"></div>
										<div style="width: 0%; height: 0px;" class="zoomWrapperImage"><img src="" style="position: absolute; border: 0px none; display: block; left: -432px; top: 0px;" /></div>
									</div>
								</div>
								<div style="visibility: hidden; top: 129.5px; left: 106px; position: absolute;" class="zoomPreload">Loading zoom</div>
						</div>
					</a>
				
			</div>
			<div class="name"><s:property value="model.pname"/></div>
			<div class="sp"><s:property value="model.sell_point"/></div>
			<div class="sn">
				<div>编号：<s:property value="model.pid"/></div>
			</div>
			<div class="info">
				<dl>
					<dt>参考价:</dt>
					<dd><del>￥:<s:property value="model.market_price"/>元</del></dd>
				</dl>
				<dl>
					<dt>商城价:</dt>
					<dd>
						<strong>￥:<s:property value="model.shop_price"/>元</strong>	
					</dd>
				</dl>
					
					<dl>
						<dt>    </dt>
						<dd>
							<span>    </span>
						</dd>
					</dl>
			</div>
			<form id="cartForm" action="${ pageContext.request.contextPath }/cart_addCart.action" method="post" >
				<input type="hidden" name="pid" value="<s:property value="model.pid"/>"/>
				<div class="action">
						<dl class="quantity">
							<dt>购买数量:</dt>
							<dd>
								<input id="count" name="count" value="1" maxlength="4"  type="text" onkeyup="value=value.replace(/[^\d]/g,'')" onblur="check();"/>
							</dd>
							<dd>
								件
							</dd>
							<dd>&nbsp;&nbsp;&nbsp;&nbsp;
							库存&nbsp;&nbsp;
							<span id="storage"><s:property value="model.storage"/></span>
							&nbsp;&nbsp;件
							</dd>
						</dl>
						
					<div class="buy">
							<input id="addCart" class="addCart" value="加入购物车" type="button" onclick="saveCart()"/>
							<input id="buyit" class="buyit" value="立即购买" type="button"></input>
					</div>
				</div>
			</form>
			<div id="bar" class="bar">
				<ul>
						<li id="introductionTab">
							<a href="#introduction">商品介绍</a>
						</li>
						
				</ul>
			</div>
				
				<div id="introduction" name="introduction" class="introduction">
					<div class="title">
						<strong><s:property value="model.pdesc"/></strong>
					</div>
					<div>
						<img src="${pageContext.request.contextPath }/<s:property value="model.image"/>">
					</div>
				</div>
				
				
				
		</div>
	</div>
<div class="container footer">
	<div class="span24">
		<div class="footerAd">
					<img src="${pageContext.request.contextPath}/image/footer.jpg" alt="我们的优势" title="我们的优势" height="52" width="950">
</div>
</div>
	<%@include file="bottom.jsp" %>
</div>
</body>
</html>